<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="s" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="t" tagdir="/WEB-INF/tags" %>
<t:template>
    <s:form action="form" method="post" modelAttribute="pessoa">
        <s:hidden path="id"/>
        <table class="form">
            <tr>
                <td>Nome</td>
                <td><s:input path="nome" cssClass="form-control"/></td>
                <td><s:errors path="nome" cssClass="label label-warning"/></td>
            </tr>
            <tr>
                <td>Idade</td>
                <td><s:input path="idade" cssClass="form-control"/></td>
                <td><s:errors path="idade" cssClass="label label-warning"/></td>
            </tr>
            <tr>
                <td>&nbsp;</td>
                <td><input type="submit" class="btn btn-primary"/></td>
                <td>&nbsp;</td>
            </tr>
        </table>

    </s:form>
</t:template>